﻿using Husb.DataUtil;
using System.Data;
namespace CentralOffice.PublicAffair.Data {
    
    
    public partial class NoticeDataSet {
        //partial class NotificationsDataTable
        //{
        //}
        partial class NotificationsRow
        {
            #region GenerateFilterExpression
            public string FilterExpression
            {
                get
                {
                    string where = "";
                    
                    where += DataAccessUtil.GetPartWhereCondition("Name", this);
                    
                    where += DataAccessUtil.GetPartWhereCondition("Significant", this);
                    where += DataAccessUtil.GetPartWhereCondition("Profile", this);
                    //where += DataAccessUtil.GetPartWhereCondition("IsTop", this);
                    where += DataAccessUtil.GetPartWhereCondition("Accepter", this);

                    where += DataAccessUtil.GetPartWhereCondition("PublishDate", "PublishDateEnd", this);
                    where += DataAccessUtil.GetPartWhereCondition("ContentText", this);
                    where += DataAccessUtil.GetPartWhereCondition("Attachments", this);
                    //where += DataAccessUtil.GetPartWhereCondition("IsDeleted", this);
                    //where += DataAccessUtil.GetPartWhereCondition("IsActive", this);
                    //where += DataAccessUtil.GetPartWhereCondition("CreatedTime", this);
                    //where += DataAccessUtil.GetPartWhereCondition("CreatedBy", this);
                    //where += DataAccessUtil.GetPartWhereCondition("ModifiedTime", this);
                    //where += DataAccessUtil.GetPartWhereCondition("LastModifiedBy", this);
                    //where += DataAccessUtil.GetPartWhereCondition("Version", this);
                    //where += DataAccessUtil.GetPartWhereCondition("Description", this);

                    return where;
                }
            }

            #endregion
        }
    }
}
